TCRDBGrid class overview.
Properties
Name | Description |
Columns |
To provide extended functionality TCRDBGrid component is shipped with a TCRColumn class, which is derived from the standard TColumn class but is tailored to work with TCRDBGrid only.
|
Filtered |
Set Filtered property to specify whether record entries are filtered according to the conditional statements of individual columns or not.
|
LevelDelimiterChar |
Set LevelDelimiterChar to set the character symbol which TCRDBGrid looks for in column captions to resolve multilevel nested columns.
|
OnMemoClick |
Write an OnMemoClick event handler to provide custom processing of Memo fields instead of built-in Memo field editor.
|
OptionsEx |
OptionsEx property provides control over TCRDBGrid-specific features. They complement inherited options found in Options property.
|
OptionsMenu |
TCRDBGrid has local menu is situated in the left upper corner. Standard menu has items to show or hide filter bar and search bars. User can change content of this menu using OptionsMenu property.
|
Methods
Name | Description |
ActivateFilterEdit |
Use ActivateFilterEdit at run-time to move input focus to the filter bar. It activates edit control that belongs to the column, specified by Column property.
|
ActivateSearchEdit |
Use ActivateSearchEdit at run-time to move input focus to the search bar. It activates edit control that belongs to the column, specified by Column property.
|
AdjustColumns |
Call AdjustColumns method at run-time to stretch all columns in a grid so that they become wide enough to accommodate every visible field value. Widths of column captions restrict minimum column sizes for this operation.
|
ApplyFilter |
Call ApplyFilter method at run-time to update TCRDBGrid component taking into account filter statements defined for every column.
|
CalcTitleLevel |
Call CalcTitleLevel method to set Top and Bottom values of aRect parameter record depending on Level parameter value.
|
ClearFilters |
Call CalcFilters method to clear all filter statements for grid columns.
|
ClearSorting |
Call ClearSorting method to discard sorting previously applied to the grid data.
|
DataChanged |
Call DataChanged method to update displayed data and status information for the grid.
|
GetGridSize |
Call GetGridSize method to obtain width of a client area for the grid component.
|
GetTitleLevel |
GetTitleLevel method returns TRect structure filled with top and bottom coordinates for the specified title level.
|
Events
Name | Description |
OnGetCellParams |
Write an OnGetCellParams event handler to provide custom background colors while the grid redraws individual cells.
|